package com.spider.page;

import java.util.concurrent.ConcurrentHashMap;

/**
 * 一个页面上存在多个相同的字段，我们可以通过这个字段存储来存储
 * @author β世界
 */
public class ResultItem {
    private ConcurrentHashMap<String,Object> result = new ConcurrentHashMap<>();

    public <T> ResultItem put(String key,T value){
        result.put(key,value);
        return this;
    }

    public <T> T get(String key){
        return (T) result.get(key);
    }

}
